﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using COFE.Core.Filter;

namespace COFE.Core.Actions
{
    public abstract class ScheduleFilterBase : IScheduleFilter
    {
        #region Constructor

        protected ScheduleFilterBase(string value)
        {            
            Value = value;
        }

        #endregion

        public abstract bool Match(ISchedule schedule);                    
        
        public virtual string Type { get { 
            return FilterAttribute.GetFilterAttribute(this).FilterName; } }

        public string Value { get; private set; }   

    }
}
